package result;

import java.nio.file.FileSystemException;

public class NotFoundException extends SystemException {
        private ResultEnum.RequestCode errorCode;
        private Object errorMsg;

        public NotFoundException() {
            super();
            this.errorCode = ResultEnum.RequestCode.NOT_FOUND;
            this.errorMsg = "data not found";
        }

        //get、set方法；
        public ResultEnum.RequestCode getErrorCode() {
            return errorCode;
        }

        public void setErrorCode(ResultEnum.RequestCode errorCode) {
            this.errorCode = errorCode;
        }

        public Object getErrorMsg() {
            return errorMsg;
        }

        public void setErrorMsg(Object errorMsg) {
            this.errorMsg = errorMsg;
        }

}
